package de.tum.in.eist.poll.client.views;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

import de.tum.in.eist.poll.client.views.widgets.LoginWidget;


/**
 * 
 * @author Sebastian Hofstetter
 *
 */
public class View extends Composite {
	private VerticalPanel mainPanel = new VerticalPanel();
	
	private HorizontalPanel header = new HorizontalPanel();
	
	@Override
	protected void initWidget(Widget widget)  {
		header.setStylePrimaryName("header");
		header.add(new LoginWidget());
		mainPanel.add(header);
		widget.addStyleName("center");
		mainPanel.add(widget);
		
		super.initWidget(mainPanel);
		getElement().setId("view");
	}
}
